/*
     File: DamAnnotation.m 
Abstract: The custom MKAnnotation object representing the Dam. 
  Version: 1.2 
  Copyright (C) 2010 Apple Inc. All Rights Reserved. 
  
 */

#import "DamAnnotation.h"

@implementation DamAnnotation

@synthesize dam_cd;
@synthesize image;
@synthesize latitude;
@synthesize longitude;
@synthesize title;
@synthesize subTitle;

- (CLLocationCoordinate2D)coordinate;
{
    CLLocationCoordinate2D theCoordinate;
    theCoordinate.latitude  = latitude;//36.56623537526916;
    theCoordinate.longitude = longitude;//137.6623821258545;
    return theCoordinate; 
}

// required if you set the MKPinAnnotationView's "canShowCallout" property to YES
- (NSString *)title
{
	return title;
}

// optional
- (NSString *)subtitle
{
    return subTitle;
}


- (void)dealloc
{
	[title release];
	[subTitle release];
	[image release];
    [super dealloc];
}

@end